@extends('layout/layout')

@section('content')

	<h2>Informações</h2>
	
	<table class="table">
		<tr>
			<td>Tipo:</td>
			<td>{{ $traveler->type }}</td>
		</tr>
		<tr>
			<td>Status:</td>
			<td>{{ $traveler->status ? 'PN' : 'OK' }}</td>
		</tr
		<tr>
			<td>Nome:</td>
			<td>{{ $traveler->name }}</td>
		</tr>
		<tr>
			<td>Data de Nascimento:</td>
			<td>{{ $traveler->birthDate }}</td>
		</tr>
		<tr>
			<td>Email:</td>
			<td>{{ $traveler->email }}</td>
		</tr>
		<tr>
			<td>Telefone:</td>
			<td>{{ $traveler->phone }}</td>
		</tr>
		<tr>
			<td>Celular:</td>
			<td>{{ $traveler->mobilePhone }}</td>
		</tr>
		<tr>
			<td>Sexo:</td>
			<td>{{ $traveler->gender }}</td>
		</tr>
		<tr>
			<td>CPF:</td>
			<td>{{ $traveler->cpf }}</td>
		</tr>
		<tr>
			<td>Passaporte:</td>
			<td>{{ $traveler->passport }}</td>
		</tr>
		
		@if ( $traveler->type == 'Funcionario' )
		
		<tr>
			<td>Martricula:</td>
			<td>{{ $traveler->registration }}</td>
		</tr>
		<tr>
			<td>Departamento:</td>
			<td>{{ $traveler->department }}</td>
		</tr>
		<tr>
			<td>Cargo:</td>
			<td>{{ $traveler->responsibility }}</td>
		</tr>
		<tr>
			<td>Regional:</td>
			<td>{{ $traveler->regional }}</td>
		</tr>
		<tr>
			<td>CentroCusto:</td>
			<td>{{ $traveler->costCenter }}</td>
		</tr>
		
		@endif
		
		<tr>
			<td>Solicitante:</td>
			<td>{{ $traveler->requestor }}</td>
		</tr>
		<tr>
			<td>Telefone Solicitante:</td>
			<td>{{ $traveler->requestingPhone }}</td>
		</tr>
		<tr>
			<td>Email Solicitante:</td>
			<td>{{ $traveler->requestingEmail }}</td>
		</tr>
	</table>
	
@stop